<template>
  <view>
    <web-view :src="url"></web-view>
  </view>
</template>

<script setup>
import {ref} from "vue";
import {onLoad} from "@dcloudio/uni-app";
const url = ref('')
onLoad((e) => {
  console.log(`mp goto`)
  console.log(`mp goto:${e.url},data:${e.data}`)
  let urlStr = `${e.url}?${decodeURIComponent(e.data)}`
  console.log(`mp goto url :${urlStr}`)
  url.value = urlStr
})
</script>
